import request from './index';

export function getCategory(params){
    return request({
        url:'/categories',
        params
    })
}

export function getCategoryById(id){
    return request({
        url:`/categories/${id}`
    })
}